package injectTest

import javax.inject.Inject

import com.google.inject. Injector


/**
  * Created by liuwei on 2017/10/30.
  */


class AnimalThread @Inject()(implicit injector: Injector) extends Thread {

  override def run() {
    println("123")
        val cat = injector.getInstance(classOf[Cat])
        println(cat.cry())
  }

}
